<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
	<title>Welcome to JSF_PrimeFaces_Hibernate Project</title>
</h:head>
<body>
	<ui:composition template="/pages/common/commonLayout.xhtml">
		<ui:define name="content">
			<h:form id="formularz">
				<p:panel id="panel">
					<h:messages errorStyle="color: purple;" />
					<table>
						<tr>
							<td><p:outputLabel value="Powiadomienia mailowe" /></td>
						</tr>
						<tr>
							<td><p:selectOneMenu rendered="#{loginBean.login}"
									value="#{loginBean.loginUser.notificationConfiguration.emailHoursBefore}">
									<f:selectItems value="#{visitMB.possibilities}" />
								</p:selectOneMenu> <p:outputLabel value="godzin przed wizyta" /></td>
						</tr>
						<tr>
							<td><p:outputLabel value="Powiadomienia smsowe" /></td>
						</tr>
						<tr>
							<td><p:selectOneMenu rendered="#{loginBean.login}"
									value="#{loginBean.loginUser.notificationConfiguration.smsHoursBefore}">
									<f:selectItems value="#{visitMB.possibilities}" />
								</p:selectOneMenu> <p:outputLabel value="godzin przed wizyta" /></td>
						</tr>
						<tr>
							<td align="right"><p:commandButton
									id="submit" value="Zapisz" action="#{visitMB.save}"
									ajax="false" /></td>
						</tr>
					</table>
				</p:panel>
			</h:form>
		</ui:define>
	</ui:composition>
</body>
</html>
